n = 1
p = 1
'''
while n < 11:
    p = p*n
    print("n=", n, "p=", p)
    n += 1
'''
for n in range(1, 11):
    p = p * n
    print("n=", n, "p=", p)
    n += 1
